[XEN] Only allow each domain to putput crash debug info once.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 11 Dec 2006 16:32:25 +0000 (16:32 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 11 Dec 2006 16:32:25 +0000 (16:32 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
xen/common/domain.c

index 51a2e78d3140deef72b969a391dbcbe752396d91..091ad986c46b84a5065dc5524d5281b22a7357f7 100644 (file)
@@ -238,7 +238,11 @@ void domain_kill(struct domain *d)
 
 void __domain_crash(struct domain *d)
 {
-    if ( d == current->domain )
+    if ( test_bit(_DOMF_shutdown, &d->domain_flags) )
+    {
+        /* Print nothing: the domain is already shutting down. */
+    }
+    else if ( d == current->domain )
     {
         printk("Domain %d (vcpu#%d) crashed on cpu#%d:\n",
                d->domain_id, current->vcpu_id, smp_processor_id());